home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / tools / trsboot / battime.doc < prev    next >
Encoding:
Text File  |  1996-07-10  |  3.1 KB  |  66 lines

  1. ────────────────────────────────────────────────────────────────────────
  2.    ╔════════════════════════════════════════════════════════════════╗
  3.    ║                      █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█                       ║
  4.    ║ █▀█▀█▀▀█▀▀█▀▀▀█▀▀▀█▀▀▀ H O R I Z O N S ▀▀▀▀█▀▀▀█▀▀▀█▀▀█▀▀█▀█▀█ ║
  5.    ║ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ Consulting ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ║
  6.    ║     ≡ 1432 E. Commercial Street ─ Springfield, MO  65803 ≡     ║
  7.    ║        ≡ Phone: (417) 839-2174 - Fax: (417) 831-1329 ≡         ║
  8.    ║─────────────────────────── presents ───────────────────────────║
  9.    ║                                                                ║
  10.    ║     █████│   ████│  ███████│ ███████│ ███│ █│    █│ ██████│    ║
  11.    ║     █│   █│ █│   █│    █│       █│     █│  ██│  ██│ █│         ║
  12.    ║     █████│  ██████│    █│       █│     █│  █│█│█│█│ ████│      ║
  13.    ║     █│   █│ █│   █│    █│       █│     █│  █│ █│ █│ █│         ║
  14.    ║     █████│  █│   █│    █│       █│    ███│ █│    █│ ██████│    ║
  15.    ║            ┌────────────────────────────────────┐              ║
  16.    ╚════════════╡ (c) 1990 Horizons Consulting, Inc. ╞══════════════╝
  17.                 └────────────────────────────────────┘
  18. ───────────────────────────────────────────────────────────────────────
  19.      BATTIME is a utility that is  packaged  as  part  of  the  TSRBOOT
  20. shareware program.
  21.  
  22.      BatTime is a program which will return an error level code to your
  23. batch file corresponding to the  system  hours,  minutes,  or  seconds,
  24. depending on which parameter passed to BatTime.
  25.  
  26.      BatTime requires a time-unit parameter  <H || M || S>,  where  'H'
  27. returns hours, 'M' returns minutes, and 'S' returns seconds.
  28. ┌─────────────┬────────────────┬───────────────────────────────────┐
  29. │If You Enter:│And the Time is:│BatTime Exits with an errorcode of:│
  30. ├─────────────┼────────────────┼───────────────────────────────────┤
  31. │ BATTIME H   │  09:05:13 am   │ 9, since Hours = 9.               │
  32. │ BATTIME M   │  09:05:13 am   │ 5, since Monutes = 5.             │
  33. │ BATTIME S   │  09:05:13 am   │ 13, since Seconds = 13.           │
  34. ├─────────────┼────────────────┼───────────────────────────────────┤
  35. │ BATTIME H   │  00:00:00 am   │ 0, since Hours = 0. {Midnight}    │
  36. │ BATTIME H   │  23:59:00 am   │ 23, since Hours = 23. {11 pm}     │
  37. └─────────────┴────────────────┴───────────────────────────────────┘
  38.  
  39. ───────────────────────────────────────────────────────────────────────
  40. Simple Batch File using BATTIME:
  41.  
  42. :Start
  43.  
  44. BATTIME H
  45. IF ERRORLEVEL 10 GOTO NOT9AM
  46. IF ERRORLEVEL 9 GOTO 9AM
  47. GOTO NOT9AM
  48.  
  49. :NOT9AM
  50. GOTO END
  51.  
  52. :9AM
  53. ECHO It's sometime between 9-9:59 am!
  54.  
  55. :end
  56. ───────────────────────────────────────────────────────────────────────
  57.         The TSRBOOT package may be registered by sending $25 to:
  58.  
  59.                          █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
  60.     █▀█▀█▀▀█▀▀█▀▀▀█▀▀▀█▀▀▀ H O R I Z O N S ▀▀▀▀█▀▀▀█▀▀▀█▀▀█▀▀█▀█▀█
  61.     ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ Consulting ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  62.         ≡ 1432 E. Commercial Street ─ Springfield, MO  65803 ≡
  63.            ≡ Phone: (417) 839-2174 - Fax: (417) 831-1329 ≡
  64. ───────────────────────────────────────────────────────────────────────
  65.  
  66.